﻿<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">

	<head>
		<meta charset="UTF-8"></meta>
		<title>管理员查询</title>
		<link rel="stylesheet" th:href="@{/plugins/layui/css/layui.css}" media="all" />
	</head>

	<body>
            
<!--             <blockquote class="layui-elem-quote" > -->
					
<form class="layui-form" method="post" action="#" id="popupForm" >
  <div class="layui-form-item">
    <label class="layui-form-label">企业名称:</label>
    <div class="layui-inline">
      <input type="text" name="enterpriseName" lay-verify="required" autocomplete="off" placeholder="请输入企业名称" class="layui-input"/>
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">企业地址:</label>
    <div class="layui-inline">
      <input type="text" name="address" placeholder="请输入企业地址" autocomplete="off" class="layui-input"/>
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">企业联系电话:</label>
    <div class="layui-inline">
      <input type="text" name="accNbr"  placeholder="请输入企业联系电话" autocomplete="off" class="layui-input"/>
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">企业编码:</label>
    <div class="layui-inline">
      <input type="text" name="enterpriseNo" lay-verify="required" autocomplete="off" placeholder="请输入企业编码" class="layui-input"/>
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">企业活动码:</label>
    <div class="layui-inline">
      <input type="text" name="paymentId" placeholder="请输入企业活动码" autocomplete="off" class="layui-input"/>
    </div>
  </div>
      <div class="layui-form-item">
    <label class="layui-form-label">大额提现阈值:</label>
    <div class="layui-inline">
      <input type="text" name="withdrawLimit"   placeholder="请输入大额提现阈值" autocomplete="off" class="layui-input"/>
    </div>
  </div>
  
  <div class="layui-form-item">
    <label class="layui-form-label">活期结息周期:</label>
    <div class="layui-inline">
      <select name="demandCycType" lay-filter="aihao">
        <option value="1">月</option>
        <option value="2">季</option>
      </select>
    </div>
  </div>
    <div class="layui-form-item">
    <label class="layui-form-label">活期结息周期:</label>
    <div class="layui-inline">
      <select name="demandCycType" lay-filter="aihao">
        <option value="1">1</option>
        <option value="2">2</option>
        <option value="3">3</option>
        <option value="4">4</option>
        <option value="5">5</option>
        <option value="6">6</option>
        <option value="7">7</option>
        <option value="8">8</option>
        <option value="9">9</option>
        <option value="10">10</option>
        <option value="11">11</option>
        <option value="12">12</option>
        <option value="13">13</option>
        <option value="14">14</option>
        <option value="15">15</option>
        <option value="16">16</option>
        <option value="17">17</option>
        <option value="18">18</option>
        <option value="19">19</option>
        <option value="20">20</option>
        <option value="21">21</option>
        <option value="22">22</option>
        <option value="23">23</option>
        <option value="24">24</option>
        <option value="25">25</option>
        <option value="26">26</option>
        <option value="27">27</option>
        <option value="28">28</option>        
      </select>
    </div>
  </div>
        <div class="layui-form-item">
    <label class="layui-form-label">商户号:</label>
    <div class="layui-inline">
      <input type="text" name="merId"  lay-verify="required"  placeholder="请输入商户号" autocomplete="off" class="layui-input"/>
    </div>
  </div>
    <div class="layui-form-item">
    <label class="layui-form-label">企业类型:</label>
    <div class="layui-inline">
      <select name="instanceType" lay-filter="aihao">
         <option value="1">普通</option>
         <option value="2">预收货款</option>
      </select>
    </div>
  </div>
      <div class="layui-form-item">
    <label class="layui-form-label">创建固定期限产品:</label>
    <div class="layui-inline">
      <select name="fixedTerm" lay-filter="aihao">
         <option value="1">可以</option>
         <option value="2">不可以</option>
      </select>
    </div>
  </div>
  <div></div>
    <div class="layui-form-item"  >
    <!-- <button data-method="offset" data-type="auto" lay-submit="" lay-filter="role1" class="layui-btn layui-btn-normal">提交</button> -->
    
	<button lay-submit="" lay-filter="go" class="layui-btn  layui-btn-normal">提交 </button>
  </div>
</form>
		<!-- 	</blockquote> -->
			
    
			  
        
        
		        <script type="text/javascript" th:src="@{/plugins/layui/layui.js}"></script>
        <script>
        layui.use('form', function () {
            var form = layui.form;
            $ = layui.jquery;
            // 这个是在iframe里面的js代码
            var frameindex = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
            form.on('submit(go)', function (data) {
    	
                var index = layer.load(1, {
                    shade: [0.1, '#fff'] //0.1透明度的白色背景
                });
                var url = '/merchant/enterprise/enterpriseSave';
                $.post(url, data.field, function (ev) {
                    if (ev.code == 000000) {
                        layer.msg(ev.msg);
                        parent.location.href = "/merchant/enterprise/enterpriseQuery";
                    } else {
                        layer.close(index);
                        layer.msg(ev.msg);
                    }
                }, 'json')
                //发送ajax
                return false; //阻止表单跳转。如果需要表单跳转，去掉这段即可。
            });
        });
    </script>

 
</body>
</html>